<html><head>
        <link href="<?php echo base_url('assets/css/formkk.css'); ?>" rel="stylesheet" type="text/css">
        <title>Laporan Data Penduduk</title>
</head>
    <body>
        <table width="882" border="0" align="center">
            <tr>
                <td colspan="10" class="trheader">Laporan Data Kartu Keluarga</td>
            </tr>
            <tr>
                <td colspan="10" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="95" bordercolor="#666666"><div align="center"><strong>No.</strong></div></td>
                <td width="179" bordercolor="#666666"><div align="center"><strong>Nomor KK</strong></div></td>
                <td width="129" bordercolor="#666666"><strong>NIK Kepala Keluarga</strong></td>
              <td width="162" bordercolor="#666666"><strong>Nama Kepala Keluarga</strong></td>
              <td width="74" bordercolor="#666666"><div align="center"><strong>Alamat</strong></div></td>
                <td width="78" bordercolor="#666666"><div align="center"><strong>Tgl. Pembuatan</strong></div></td>
                <td colspan="2" bordercolor="#666666"><div align="center"><strong>Aksi</strong></div></td>
            </tr>
            <tr>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
              <td bordercolor="#666666">&nbsp;</td>
              <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
                <td width="54" bordercolor="#666666"><div align="center"><a href="#">Edit</a></div></td>
                <td width="77" bordercolor="#666666"><div align="center"><a href="#">Hapus</a></div></td>
            </tr>
            <tr>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
              <td bordercolor="#666666">&nbsp;</td>
              <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
                <td bordercolor="#666666">&nbsp;</td>
            </tr>

            <?php
            if (isset($data)) {
                foreach ($data->result() as $data_kk) {
                    echo '<tr>';
                    echo '<td>' . $data_kk->no_kk . '</td>';
                    echo '<td>' . $data_kk->nik . '</td>';
                    echo '<td>' . $data_kk->nama . '</td>';
                    echo '<td>' . $data_kk->alamat . '</td>';
                    echo '<td>' . $data_kk->tgl_pembuatan . '</td>';
                    echo '<td>umur</td>';
                    echo '<td>' . $data_kk->status . '</td>';
                    echo '</tr>';
                }
            }
          
            ?>
        </table>
<br>
        <table width="419" border="0" align="center">
            <tr>
                <td colspan="2" class="jeda"><strong>Data Tercatat</strong></td>
        </tr>
            <tr>
                <td width="177">Jumlah Kepala Keluarga</td>
                <td width="232">: </td>
          </tr>
        </table>

</body>
</html>
